<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of promotion
 *
 * @author HIEN JENNY
 */
class Admin_Model_Promotion extends Libs_Model {
    public function getPromotion(){
        $sql = "SELECT * FROM tbl_promo";
        return $this->db->fetchAll($sql);
    }
    public function getNumberPromotionById($id=''){
        $sql = "SELECT promo_number FROM tbl_promo WHERE id= $id ";
        return $this->db->fetchOne($sql);
    }
}

?>
